package com.zj.util.concurrent;

import java.util.concurrent.ThreadFactory;

/**
 * @author zhangbo
 * @program: PDF-helper
 * @ClassName KernelThreadFactory
 * @description: $
 * @date 2023-05-27 21:36:25
 */
public class KernelThreadFactory implements ThreadFactory {

    private static final String KERNEL_TREAD_NAME = "KernelThread";

    @Override
    public Thread newThread(Runnable r) {
        Thread thread = new Thread(r);
        thread.setName(KERNEL_TREAD_NAME);
        return thread;
    }
}
